
import SimpleITK as sitk 




for i in range(1, 100):
    image = sitk.ReadImage(f"./show_all_lesions/{i}/{i}_pred.nii.gz")
    arr = sitk.GetArrayFromImage(image)

    arr = arr > 0

    print(i, arr.sum())

